﻿using System.Collections;

namespace Demo.History.Entities
{
    public sealed class MonitorObjects
    {
        private ArrayList m_ListenObjects;

        public MonitorObjects()
        {
            m_ListenObjects = new ArrayList();
        }

        public void Listen(object obj)
        {
            m_ListenObjects.Add(obj);
        }

        public void DisListen(int index)
        {
            m_ListenObjects.RemoveAt(index);
        }

        public void DisListen(object obj)
        {
            m_ListenObjects.Remove(obj);
        }

        public IList GetListenObjects()
        {
            return m_ListenObjects;
        }


    }
}
